home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/nice,v $
- * $Date: 1996/10/30 21:59:01 $
- * $Revision: 1.3 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: nice,v $
- * Revision 1.3 1996/10/30 21:59:01 unixlib
- * Massive changes made by Nick Burret and Peter Burwood.
- *
- * Revision 1.2 1996/05/06 09:01:35 unixlib
- * Updates to sources made by Nick Burrett, Peter Burwood and Simon Callan.
- * Saved for 3.7a release.
- *
- * Revision 1.1 1996/04/19 21:35:27 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: nice,v 1.3 1996/10/30 21:59:01 unixlib Rel $";
-
- #include <sys/resource.h>
-
- int
- nice (int increment)
- {
- int old = getpriority (PRIO_PROCESS, 0);
- return setpriority (PRIO_PROCESS, 0, old + increment);
- }
-